package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 数量许可实体类
 *
 * @author 吴旭
 */
public class QuantityOfLimitedEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -4111143631409842820L;
    private Long QuantityOfLimitedId;
    private Integer PoTypeId;
    private String PoTypeName;
    private Long BuyerId;
    private String BuyerName;
    private String QuantityOfLimited;

    public Long getQuantityOfLimitedId() {
        return QuantityOfLimitedId;
    }

    public void setQuantityOfLimitedId(Long QuantityOfLimitedId) {
        this.QuantityOfLimitedId = QuantityOfLimitedId;
    }

    public Integer getPoTypeId() {
        return PoTypeId;
    }

    public void setPoTypeId(Integer PoTypeId) {
        this.PoTypeId = PoTypeId;
    }

    public String getPoTypeName() {
        return PoTypeName;
    }

    public void setPoTypeName(String PoTypeName) {
        this.PoTypeName = PoTypeName;
    }

    public Long getBuyerId() {
        return BuyerId;
    }

    public void setBuyerId(Long BuyerId) {
        this.BuyerId = BuyerId;
    }

    public String getBuyerName() {
        return BuyerName;
    }

    public void setBuyerName(String BuyerName) {
        this.BuyerName = BuyerName;
    }

    public String getQuantityOfLimited() {
        return QuantityOfLimited;
    }

    public void setQuantityOfLimited(String QuantityOfLimited) {
        this.QuantityOfLimited = QuantityOfLimited;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof QuantityOfLimitedEntity)) {
            return false;
        }

        final QuantityOfLimitedEntity that = (QuantityOfLimitedEntity) o;

        return new EqualsBuilder()
                .append(this.getQuantityOfLimitedId(), that.getQuantityOfLimitedId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getQuantityOfLimitedId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
